# api/__init__.py
"""
Author: didiplus
Description: API路由模块初始化文件
Date: 2025-08-20 21:00:00
LastEditors: didiplus
LastEditTime: 2025-08-20 21:00:00
FilePath: /WeChatBot/app/api/__init__.py
Version: 1.0
"""
import sys
import os

# 添加项目根目录到Python路径
current_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, current_dir)

from fastapi import APIRouter

# 使用绝对导入方式引入模块
from api import users, keywords, auth

# 创建API路由器
api_router = APIRouter()

# 注册各个模块的路由
api_router.include_router(users.router, prefix="/users", tags=["users"])
api_router.include_router(keywords.router, prefix="/keywords", tags=["keywords"])
api_router.include_router(auth.router, prefix="/auth", tags=["auth"])

__all__ = ["api_router"]